package com.ht.WeNas.config.web;

import org.springframework.core.annotation.Order;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.NoHandlerFoundException;

@ControllerAdvice
@Order(0)
public class MyControllerAdvice {
    @ExceptionHandler(NoHandlerFoundException.class)
    public String handleError404() {
        return "/index.html";
    }
}
